home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / qw12inst.zip / AUTOSCRI.TEC < prev    next >
Text File  |  1991-03-11  |  7KB  |  156 lines

  1. ID:SC Startup Scripts to Automate DESQview
  2. Quarterdeck Technical Note #153
  3. by Bob Perry
  4.  
  5. HOW TO AUTOMATE DESQview - STARTUP SCRIPTS
  6.  
  7. Q: How can I automatically startup DESQview?
  8. Q: How can I configure DESQview to automatically startup all my
  9.      applications?
  10. Q: How can I configure DESQview so that when I open a window it
  11.      automatically loads the right file, or otherwise does
  12.      things in that application for me?
  13. Q: How can I integrate all of the above?
  14.  
  15.  
  16. First, you must have a version of DESQview which is 2.0 or greater. 
  17. Assuming you have this, proceed as follows:
  18.  
  19. A fully automated DESQview involves three levels of automation:
  20.      1-Modification of your AUTOEXEC.BAT,
  21.      2-Creation of an auto startup script on the DESQview menu,
  22.      3-Creation of startup scripts for your applications.
  23.  
  24. Step One - Loading DESQview upon system boot up.
  25.  
  26. By modifying your AUTOEXEC.BAT file, you can boot right into
  27. DESQview. This is our recommended procedure.  To do so, you only
  28. need to add two simple lines to this file:
  29.  
  30.      cd\dv
  31.         dv
  32.  
  33. The first line changes directories to the DESQview directory, and
  34. the second line executes the program. Users who invoke DESQview
  35. with xdv would have xdv as the second line.  These should be the
  36. LAST lines of your AUTOEXEC.BAT file.
  37.  
  38. Step Two - Creating a startup script on the DESQview menu.
  39.      
  40. As described on page 89 of the DESQview version 2 manual, the
  41. special technique distinguishing a STARTUP script is the "!"
  42. exclamation point key.  This is done as follows:
  43.  
  44.      -Begin at the original DESQview Open Window menu, with no 
  45.       other programs open or running.
  46.  
  47.      -Hold down the Shift and tap your {DESQ} key, to enter 
  48.       the DESQview Learn menu.
  49.  
  50.      -At first menu, type "=" to Start a Script.
  51.  
  52.      -At the prompt "Press the key you want to redefine", 
  53.       choose a key you want to define for the script.  If you
  54.       don't want to "use up" any keys, try HOLDING DOWN the Alt 
  55.       key and then pressing a 3-digit number on the numeric 
  56.       keypad (try 2 5 0).  This will result in the "key" being 
  57.       {250}, a key you will be unlikely to type.
  58.  
  59.      -The next menu asks you to name your script.  Begin the      
  60.       name of the script with the exclamation point character 
  61.       "!".  The exclamation point as the first character in 
  62.       the script name is the key which makes it an auto-start 
  63.       script.
  64.  
  65.      -FROM THIS POINT ONWARD, DESQview WILL BE "REMEMBERING" 
  66.       EACH KEYSTROKE YOU MAKE.
  67.  
  68. HINT: As with any DESQview script, use only the alpha-numeric 
  69. keyboard keys when you select from menus.  Do not use cursor keys 
  70. or try to teach your mouse a script!  Cursor keys are not as 
  71. reliable when selecting from menus and mouse movements, and clicks
  72. are not keystrokes and therefore cannot be learned in a "Keyboard 
  73. macro."
  74.  
  75.      -A typical pattern of keystrokes might go like this:
  76.       {DESQ} O W P   (for Open Word Processor)
  77.       {DESQ} O L 2   (for Open Lotus 1-2-3, release 2)
  78.       {DESQ} O D 1   (for Open DOS (128K) window)
  79.       {DESQ} O D D   (for Open DESQview Datebook)
  80.       etc.
  81.  
  82.      -When you've opened all your needed applications in the
  83.       right sequence, hit Shift-{DESQ} again, and hit
  84.       the "-" key to finish the script.
  85.  
  86.      -Now in order to have the script available on the next 
  87.       time you start DESQview, you must save it.  REMEMBER, 
  88.       scripts must be saved at the same level of DESQview as 
  89.       they were begun, so if this is the main DESQview auto-
  90.       start script, bring up the DESQview menu, hit Shift-Alt 
  91.       to bring up the Learn menu, hit "S" for Save and save to 
  92.       the default DESQVIEW.DVS file.
  93.  
  94. Now, when your AUTOEXEC.BAT file boots you directly into DESQview,
  95. DESQview will automatically launch your applications in exactly
  96. the order you want them opened.  
  97.  
  98. Note that if you have any startup scripts for your applications,
  99. your DESQview menu startup script will launch these as well!  See
  100. the next section on how to write such an application startup 
  101. script.
  102.  
  103. Step 3 - Writing a startup script for your applications.
  104.  
  105. With DESQview's powerful Learn feature you can "teach" any 
  106. application to perform the same series of keystrokes each and 
  107. every time that DESQview window is opened. This is particularly 
  108. useful for typing headers, loading a file, displaying application 
  109. directories, configuration alterations, and other routine
  110. keystrokes that are repeated by the user each time the application
  111. window is opened.
  112.  
  113.      -Begin by opening the application program in DESQview.
  114.  
  115.      -Depress the Shift and tap the {DESQ} key to enter the 
  116.       Learn menu.
  117.  
  118.      -At the first menu, choose "=" to Start Learning.
  119.  
  120.      -When the prompt "Press the key you want to redefine"
  121.       appears, select some obscure combination of keys that
  122.       you would never hit accidently.  Better yet, choose a
  123.       key that doesn't even exist, such as holding down the
  124.       right Alt key and typing 250 on your numeric keypad.
  125.  
  126.      -AT THE PROMPT FOR "SCRIPT NAME" BEGIN THE NAME WITH
  127.       THE "!" EXCLAMATION POINT CHARACTER.  As explained on
  128.       page 89 of the DESQview manual, this "!" exclamation
  129.       point triggers the automatic startup execution of all
  130.       the keystrokes that will follow. 
  131.  
  132. AS ABOVE, AVOID THE USE OF CURSOR KEYS, AND NO MOUSE BUTTONS
  133. PLEASE!
  134.  
  135.      -After performing the series of keystrokes that you
  136.       wish to use to automatically execute each time that
  137.       DESQview window is opened, you must again depress the
  138.       Shift and tap the {DESQ} key, and select the "-"
  139.       to Finish the Script.
  140.  
  141.      -Since the script was begun in the application window, 
  142.       bring up the Learn menu and save the script.
  143.  
  144. Now your system is fully automated using the DESQview automatic
  145. startup macro or Learn features described above.  Your machine
  146. will boot up and start DESQview for you automatically.  Then
  147. DESQview will launch your favorite applications for you with
  148. your DESQview menu startup script.  Finally, each application
  149. you open will perform the keystrokes that you have dictated in your
  150. application startup script.  By the time you pour a cup of java and
  151. sit down at the keyboard, your machine will be custom-tuned to your
  152. specifications and ready for your work.
  153.  
  154.         Copyright (C) 1991 by Quarterdeck Office Systems
  155.              * * *   E N D   O F   F I L E    * * * 
  156.